<?
	$data['name'] = $_POST['name'];
	$data['type'] = $_POST['type'];
	$data['principle'] = $_POST['principle'];
	$data['related'] = $_POST['related'];

	$data['p0'] = $_POST['p0'];
	$data['p1'] = $_POST['p1'];
	$data['p2'] = $_POST['p2'];
	$data['p3'] = $_POST['p3'];
	$data['p4'] = $_POST['p4'];
	$data['p5'] = $_POST['p5'];

	$data['evaluation'] = $dsfm_common->evaluation($_POST['result'], $data);

	$db->update("assessment", $data, "id=".$id);

	redirect("assessment.php?id=".$id);
?>